<!--
课程类别列表
 add by zh 2019-07-01
-->
<template lang="pug">
  keep-alive
    kalix-table(bizKey="CourseType" title='课程类别列表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="CourseTypeURL1"
    v-bind:bizDialog="courseTypeDialog"
    v-bind:btnList="courseTypeBtnList"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="courseTypeSearch")
</template>

<script type="text/ecmascript-6">
  import {CourseTypeURL1} from '../../config.toml'
  import {courseTypeConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-mooc-coursetype',
    components: {KalixTable},
    data() {
      return {
        CourseTypeURL1: CourseTypeURL1,
        tableFields: [
          {prop: 'name', label: '课程类别名称'}
        ],
        courseTypeDialog: [
          {id: 'add', dialog: 'courseTypeAdd'},
          {id: 'edit', dialog: 'courseTypeEdit'},
          {id: 'view', dialog: 'courseTypeView'}
        ],
        courseTypeBtnList: courseTypeConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
